package com.qys.livesMall.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.system.model.dto.sys.SysLanguageTextDTO;
import com.qys.livesMall.system.model.entity.SysLanguageText;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qys.livesMall.system.model.vo.sys.SysLanguageTextVO;

import java.util.List;

/**
 * <p>
 * 多语言文本 服务类
 * </p>
 *
 * @author
 * @since 2023-09-25
 */
public interface SysLanguageTextService extends IService<SysLanguageText> {

    boolean add(SysLanguageTextDTO sysLanguageTextDTO);

    boolean updateInfo(SysLanguageTextDTO sysLanguageTextDTO);

    IPage<SysLanguageTextVO> queryPage(BaseQuery query);

    SysLanguageTextVO getInfo(Long id);

    List<SysLanguageTextVO> getTypeAll(String name);

    String getInfoBytypeId(String typeId);

    String getByLangAndTypeId(String typeId,String defaultLang);
}
